package cn.edu.scau.cmi.wubaorun.factory;

import cn.edu.scau.cmi.wubaorun.insurance.BodyInjur;
import cn.edu.scau.cmi.wubaorun.insurance.CarInjur;
import cn.edu.scau.cmi.wubaorun.insurance.PersonInjur;

public class Creator {
private	String s=null;
public String create(String i) {
	if(i.equals("0")) {
		BodyInjur bi=new BodyInjur();
		s=bi.getInfo();
	}
if(i.equals("1")) {
		CarInjur ci=new CarInjur();
		s=ci.getInfo();
	}
if(i.equals("2")) {
	PersonInjur pi=new PersonInjur();
	s=pi.getInfo();
}
	return s;
}
}
